import i18n from '@/lang'
// 当前订单管理表头
export const orderTbColumns = [
  {
    title: i18n.t('orderNum'),
    dataIndex: 'orderNum',
    scopedSlots: { customRender: 'orderNum' },
    width: 200
  },
  {
    title: i18n.t('goodsCode'),
    dataIndex: 'goodsCode',
    scopedSlots: { customRender: 'goodsCode' },
    width: 200
  },
  {
    title: i18n.t('orderAmount'),
    dataIndex: 'price',
    scopedSlots: { customRender: 'orderAmount' },
    width: 200,
    sorter: true
  },
  {
    title: i18n.t('operationFlow'),
    dataIndex: 'operateSn',
    scopedSlots: { customRender: 'operationFlow' },
    width: 200
  },
  {
    title: i18n.t('orderForm'),
    dataIndex: 'orderType',
    scopedSlots: { customRender: 'orderType' },
    width: 100
  },
  {
    title: i18n.t('orderState'),
    dataIndex: 'orderStatus',
    scopedSlots: { customRender: 'orderStatus' },
    width: 100
  },
  {
    title: i18n.t('payState'),
    dataIndex: 'payStatus',
    scopedSlots: { customRender: 'payStatus' },
    width: 100
  },
  {
    title: i18n.t('invoicingState'),
    dataIndex: 'billStatus',
    scopedSlots: { customRender: 'billStatus' },
    width: 100
  },
  {
    title: i18n.t('refundState'),
    dataIndex: 'refundStatus',
    scopedSlots: { customRender: 'refundStatus' },
    width: 100
  },
  {
    title: i18n.t('userPhone'),
    dataIndex: 'memberPhone',
    scopedSlots: { customRender: 'memberPhone' },
    width: 140
  },
  {
    title: 'VIN',
    dataIndex: 'vin',
    scopedSlots: { customRender: 'VIN' },
    width: 200
  },
  {
    title: i18n.t('modelCode'),
    dataIndex: 'modelCode',
    scopedSlots: { customRender: 'modelCode' },
    width: 140
  },
  {
    title: i18n.t('modelName'),
    dataIndex: 'modelName',
    scopedSlots: { customRender: 'modelName' },
    width: 140
  },
  {
    title: i18n.t('stereotype'),
    dataIndex: 'trimLevel',
    scopedSlots: { customRender: 'stereotype' },
    width: 120
  },
  {
    title: i18n.t('timeOfCreation'),
    dataIndex: 'orderTime',
    scopedSlots: { customRender: 'createTime' },
    width: 180,
    sorter: true
  },
  {
    title: i18n.t('payTime'),
    dataIndex: 'payTime',
    scopedSlots: { customRender: 'payTime' },
    width: 180,
    sorter: true
  },
  {
    title: i18n.t('invoicingTime'),
    dataIndex: 'billTime',
    scopedSlots: { customRender: 'invoicingTime' },
    width: 180,
    sorter: true
  },
  {
    title: i18n.t('refundTime'),
    dataIndex: 'refundTime',
    scopedSlots: { customRender: 'refundTime' },
    width: 180,
    sorter: true
  }
]

// 订单详情中服务列表表头
export const orderDetailTbColumns = [{
  title: i18n.t('serviceCode'),
  dataIndex: 'serviceCode',
  scopedSlots: { customRender: 'serviceCode' },
  width: 200
}, {
  title: i18n.t('serviceName'),
  dataIndex: 'serviceName',
  scopedSlots: { customRender: 'serviceName' },
  width: 200
},
{
  title: i18n.t('serviceCycle'),
  dataIndex: 'goodsPeriod',
  scopedSlots: { customRender: 'serviceCycle' },
  width: 200,
  special: true
},
{
  title: '购买数量',
  dataIndex: 'goodsQuantity',
  scopedSlots: { customRender: 'goodsQuantity' },
  width: 200,
  special: true
}
]

// 后台下单选择服务列表表头
export const bgOrderServiceTbColumns = [{
  title: i18n.t('serviceCode'),
  dataIndex: 'serviceCode',
  scopedSlots: { customRender: 'serviceCode' },
  width: 120
}, {
  title: i18n.t('serviceName'),
  dataIndex: 'serviceName',
  scopedSlots: { customRender: 'serviceName' },
  width: 140
}, {
  title: i18n.t('presetOrNot'),
  dataIndex: 'enableState',
  scopedSlots: { customRender: 'presetOrNot' },
  width: 120
}, {
  title: i18n.t('whetherSold'),
  dataIndex: 'saleState',
  scopedSlots: { customRender: 'whetherSold' },
  width: 100
}, {
  title: i18n.t('whetherActivated'),
  dataIndex: 'activeState',
  scopedSlots: { customRender: 'whetherActivated' },
  width: 100
}, {
  title: i18n.t('needToLearn'),
  dataIndex: 'needStudy',
  scopedSlots: { customRender: 'needToLearn' },
  width: 100
}, {
  title: i18n.t('versionDepend'),
  dataIndex: 'versionDepend',
  scopedSlots: { customRender: 'versionDepend' },
  width: 100
}]
// 后台下单选择车辆列表表头
export const bgOrderVehicleTbColumns = [{
  title: 'VIN',
  dataIndex: 'vin',
  scopedSlots: { customRender: 'vin' },
  width: 200
}, {
  title: i18n.t('vehicleType'),
  dataIndex: 'vehicleType',
  scopedSlots: { customRender: 'vehicleType' },
  width: 150
}, {
  title: i18n.t('modelCode'),
  dataIndex: 'modelCode',
  scopedSlots: { customRender: 'modelCode' },
  width: 120
}, {
  title: i18n.t('modelName'),
  dataIndex: 'modelName',
  scopedSlots: { customRender: 'modelName' },
  width: 160
}, {
  title: i18n.t('stereotype'),
  dataIndex: 'trimLevel',
  scopedSlots: { customRender: 'stereotype' },
  width: 100
}, {
  title: i18n.t('latestOnlineTime'),
  dataIndex: 'lastActiveTime',
  scopedSlots: { customRender: 'latestOnlineTime' },
  width: 150,
  sorter: true
}, {
  title: i18n.t('province'),
  dataIndex: 'province',
  scopedSlots: { customRender: 'province' },
  width: 120
}]
// 后台下单来自文件失败
export const failFileTbColumns = [{
  title: 'VIN',
  dataIndex: 'vin',
  scopedSlots: { customRender: 'vin' },
  width: 200
},
{
  title: i18n.t('importResult'),
  dataIndex: 'success',
  scopedSlots: { customRender: 'success' },
  special: true,
  width: 200
},
{
  title: i18n.t('failureReason'),
  dataIndex: 'failCode',
  scopedSlots: { customRender: 'failureReason' },
  width: 200
}
]
